import request from '/@/utils/request';
export function getPrintList(query?: Object) {
    return request({
        url: '/print/list',
        method: 'get',
        params: query
    })
}
// 注册
export function getPrintInfo(id?: number) {
    return request({
        url: '/print/info',
        method: 'get',
        params: {id:id}
    })
}
// 采购申请
export function editPrint(data?: Object) {
    return request({
        url: '/print/edit',
        method: 'put',
        data: data
    })
}

// 采购申请
export function deletePrint(query?: Object) {
    return request({
        url: '/print/delete',
        method: 'delete',
        params: query
    })
}
// 采购申请
export function getPrinData(query?: Object) {
    return request({
        url: '/print/getprintdata',
        method: 'get',
        params: query
    })
}
export function getdanData(query?: string) {
    return request({
        url: '/system/latandlong/deliverordertowms?ordernumber='+query,
        method: 'get'
    })
}
export function postPrint(code:any,rid:any) {
    return request({
        url:  '/form/print/'+code+'/'+rid,
        method: 'post'
    })
}
// 图表
export function extu(query?: string) {
    return request({
        url: '/system/latandlong/materialprice?materialno='+query,
        method: 'get'
    })
}
// 验证账号是否时供应商
export function isgongyingshang(){
    return request({
        url: '/system/user/isgys',
        method: 'get'
    })
}